package com.yricky.indesk.ui.compose

import android.content.Intent
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.unit.dp
import com.yricky.indesk.R
import com.yricky.indesk.a.activity.SettingsActivity

/**
 * @author Yricky
 * @date 2022/1/1
 */
@Composable
fun SettingsIconButton(){
    val context = LocalContext.current
    RIcon(
        modifier = Modifier
            .size(36.dp)
            .clickable { context.startActivity(Intent(context,SettingsActivity::class.java)) }
            .padding(6.dp),
        id = R.drawable.ic_round_settings_24,
        contentDescription = ""
    )
}